#!/bin/sh

herd stop root
sleep 2
# Use 'halt' on GuixSD.
if [ -d "/run/current-system" ]; then
    sudo /run/current-system/profile/sbin/halt
else
    systemctl poweroff
fi
